<%--

  Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the latest version of the GNU Lesser General
  Public License as published by the Free Software Foundation;

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with this program (LICENSE.txt); if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

--%>
<%@ page errorPage="/WEB-INF/jsp/error.jsp"
    contentType="text/html; charset=utf-8"
%>
<%@ page pageEncoding="utf-8"%> 
<%request.setCharacterEncoding("utf-8");%> 
      <c:if test="${empty notopic}">
	     <c:if test="${!empty topicObject}">
		<div id="content-article">
		<c:if test="${topicImage}"><jamwiki:image value="${topicObject.name}" /></c:if>
		<c:if test="${topicFile}">
			<div id="topic-file-download">
			<table border="0" width="98%"><tr>
			  <td width="30%" align="right"><f:message key="topic.file.download" />:&#160;</td>
			  <td width="50%" align="left"><a href="<c:out value="${fileVersions[0].url}" />"><c:out value="${topicObject.simpleName}" /></a></td>
			  <td width="15%" align="left"> <input type="button" name="edit"  value="编辑"  onclick="creatNew('${fileVersions[0].url}','${categoryId}')" /></td>
			  </tr></table>
			</div>
		</c:if>
		<c:if test="${!topicFile}">
		<c:out value="${topicObject.topicContent}" escapeXml="false" />
		</c:if>
		</div>
		<div class="clear"></div>
				<c:if test="${!empty fileVersions}">
		<h2><f:message key="topic.filehistory" /></h2>
		<ul>
					<c:forEach items="${fileVersions}" var="fileVersion">
		<li>
		<a href="<c:out value="${fileVersion.url}" />">版本号(<c:out value="${fileVersion.fileVersionId}" />)&nbsp;&nbsp;&nbsp;&nbsp;<c:out value="${topicObject.simpleName}" />-<f:formatDate value="${fileVersion.uploadDate}" type="both" pattern="dd-MMM-yyyy HH:mm" /></a>
		&#160;(<c:out value="${fileVersion.fileSize}" /> bytes)
						<c:if test="${!empty fileVersion.uploadComment}">&#160;(<i><c:out value="${fileVersion.uploadComment}" /></i>)</c:if>
		</li>
					</c:forEach>
		</ul>
				</c:if>
			</c:if>
			<c:if test="${!empty categories}">
		<div id="category-index"><jamwiki:link value="Special:Categories"><f:message key="topic.categories" /></jamwiki:link>:
				<c:forEach items="${categories}" var="category" varStatus="status">
		<c:if test="${!status.first}">&#160;|&#160;</c:if><jamwiki:link value="${category.key}" text="${category.value}" />
				</c:forEach>
		</div>
		<div class="clear"></div>
			</c:if>
		</c:if>
		<c:if test="${!empty notopic}">
		<div class="message"><f:message key="${notopic.key}"><f:param value="${notopic.params[0]}" /><f:param><jamwiki:link value="${notopic.params[0]}" text="${notopic.params[0]}" /></f:param></f:message></div>
		</c:if>
      

 
